import request from "@/utils/request";

// 注册用户
export function addUser(data) {
    return request({
        url: "/register/add",
        method: "post",
        data: data
    });
}

// 邮箱注册
export function registermails(data) {
    return request({
        url: "/register/emailAdd",
        method: "post",
        data: data
    });
}

// 发送手机验证码
export function sendPhoneCode(data) {
    return request({
        url: "/register/add",
        method: "post",
        data: data
    });
}

// 发送邮箱验证码
export function getEmail(data) {
    return request({
        url: "/register/sendEmail",
        method: "get",
        params: data
    });
}
// 发送邮箱验证码
export function uniquephone(data) {
    return request({
        url: "/register/uniquePhone",
        method: "post",
        data: data
    });
}
